// Copyright (c) 2020 Presto Labs Pte. Ltd.
// Author: jing

#include <cxxopts.hpp>

#include "coin2/base/config/args.h"
#include "coin2/strategy/strategy.h"

using namespace coin2::app;
using namespace coin2::base::config;

int main(int argc, char* argv[]) {
  DriverConfig app;

  cxxopts::Options opt("Vanilla Strategy", "Run the subsystems.");
  AddDriverOptions(&opt);
  AddIntervalOptions(&opt);

  auto res = opt.parse(argc, argv);
  ParseDriverOptions(res, &app);
  ParseIntervalOptions(
      res,
      app.mutable_feed()->mutable_common()->mutable_archive()->mutable_interval());

  ::coin2::base::InitLogging(argv[0], app.log());

  coin2::strategy::IStrategy no_strategy;

  Driver driver(app, &no_strategy);
  driver.Run();

  return 0;
}
